module StackOverflow::Utils
  require 'uri'
  DOMAIN = 'http://stackoverflow.com'

  def self.http_get(suffix)
    uri = URI("#{DOMAIN}#{suffix}")
    text = Net::HTTP.get(uri)
    Nokogiri::HTML(text)
  end
end
